<!DOCTYPE html>
<html lang="en">
  <head>
    <title>SwiftFortuneWheelConfiguration Structure Reference</title>
    <link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
    <link rel="stylesheet" type="text/css" href="../css/highlight.css" />
    <meta charset='utf-8'>
    <script src="../js/jquery.min.js" defer></script>
    <script src="../js/jazzy.js" defer></script>
    
  </head>
  <body>
    <a name="//apple_ref/swift/Struct/SwiftFortuneWheelConfiguration" class="dashAnchor"></a>
    <a title="SwiftFortuneWheelConfiguration Structure Reference"></a>
    <header>
      <div class="content-wrapper">
        <p><a href="../index.html">SwiftFortuneWheel 0.8.1 Docs</a> (85% documented)</p>
      </div>
    </header>
    <div class="content-wrapper">
      <p id="breadcrumbs">
        <a href="../index.html">SwiftFortuneWheel Reference</a>
        <img id="carat" src="../img/carat.png" />
        SwiftFortuneWheelConfiguration Structure Reference
      </p>
    </div>
    <div class="content-wrapper">
      <nav class="sidebar">
        <ul class="nav-groups">
          <li class="nav-group-name">
            <a href="../Classes.html">Classes</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Classes/PinImageView.html">PinImageView</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/SpinButton.html">SpinButton</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/SpinningWheelAnimator.html">SpinningWheelAnimator</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/SwiftFortuneWheel.html">SwiftFortuneWheel</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/TTUtils.html">TTUtils</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/WheelLayer.html">WheelLayer</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/WheelView.html">WheelView</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Extensions.html">Extensions</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Extensions/Array.html">Array</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/CGSize.html">CGSize</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/String.html">String</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/UIColor.html">UIColor</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/UIFont.html">UIFont</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/UIImage.html">UIImage</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Protocols.html">Protocols</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Protocols/CurveTextDrawing.html">CurveTextDrawing</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/ImageDrawing.html">ImageDrawing</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/ShapeDrawing.html">ShapeDrawing</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/SliceCalculating.html">SliceCalculating</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/SliceDrawing.html">SliceDrawing</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/SpinningAnimatable.html">SpinningAnimatable</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/SpinningAnimatorProtocol.html">SpinningAnimatorProtocol</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/TextDrawing.html">TextDrawing</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/WheelMathCalculating.html">WheelMathCalculating</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Structs.html">Structures</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Structs/Calc.html">Calc</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/ImagePreferences.html">ImagePreferences</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/LinePreferences.html">LinePreferences</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/Slice.html">Slice</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/Slice/ContentType.html">– ContentType</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/SwiftFortuneWheelConfiguration.html">SwiftFortuneWheelConfiguration</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/SwiftFortuneWheelConfiguration/WheelPreferences.html">– WheelPreferences</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/SwiftFortuneWheelConfiguration/CirclePreferences.html">– CirclePreferences</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/SwiftFortuneWheelConfiguration/SlicePreferences.html">– SlicePreferences</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/SwiftFortuneWheelConfiguration/SpinButtonPreferences.html">– SpinButtonPreferences</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/SwiftFortuneWheelConfiguration/PinImageViewPreferences.html">– PinImageViewPreferences</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/SwiftFortuneWheelConfiguration/Position.html">– Position</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/SwiftFortuneWheelConfiguration/Margins.html">– Margins</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/SwiftFortuneWheelConfiguration/ColorType.html">– ColorType</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/SwiftFortuneWheelConfiguration/AnchorImage.html">– AnchorImage</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/TextPreferences.html">TextPreferences</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/TextPreferences/Orientation.html">– Orientation</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/TextPreferences/LineBreakMode.html">– LineBreakMode</a>
              </li>
            </ul>
          </li>
        </ul>
      </nav>
      <article class="main-content">
        <section>
          <section class="section">
            <h1>SwiftFortuneWheelConfiguration</h1>
              <div class="declaration">
                <div class="language">
                  <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">struct</span> <span class="kt">SwiftFortuneWheelConfiguration</span></code></pre>

                </div>
              </div>
            <p>Configuration, contains preferences to configure a fortune wheel</p>

          </section>
          <section class="section task-group-section">
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:17SwiftFortuneWheel0abC13ConfigurationV21spinButtonPreferencesAC04SpinfG0Vvp"></a>
                    <a name="//apple_ref/swift/Property/spinButtonPreferences" class="dashAnchor"></a>
                    <a class="token" href="#/s:17SwiftFortuneWheel0abC13ConfigurationV21spinButtonPreferencesAC04SpinfG0Vvp">spinButtonPreferences</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Spin button preferences</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">spinButtonPreferences</span><span class="p">:</span> <span class="kt"><a href="../Structs/SwiftFortuneWheelConfiguration/SpinButtonPreferences.html">SpinButtonPreferences</a></span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:17SwiftFortuneWheel0abC13ConfigurationV14pinPreferencesAC012PinImageViewF0Vvp"></a>
                    <a name="//apple_ref/swift/Property/pinPreferences" class="dashAnchor"></a>
                    <a class="token" href="#/s:17SwiftFortuneWheel0abC13ConfigurationV14pinPreferencesAC012PinImageViewF0Vvp">pinPreferences</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Pin (arrow) view preferences</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">pinPreferences</span><span class="p">:</span> <span class="kt"><a href="../Structs/SwiftFortuneWheelConfiguration/PinImageViewPreferences.html">PinImageViewPreferences</a></span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:17SwiftFortuneWheel0abC13ConfigurationV16wheelPreferencesAC0cF0Vvp"></a>
                    <a name="//apple_ref/swift/Property/wheelPreferences" class="dashAnchor"></a>
                    <a class="token" href="#/s:17SwiftFortuneWheel0abC13ConfigurationV16wheelPreferencesAC0cF0Vvp">wheelPreferences</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Wheel preferences</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">wheelPreferences</span><span class="p">:</span> <span class="kt"><a href="../Structs/SwiftFortuneWheelConfiguration/WheelPreferences.html">WheelPreferences</a></span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:17SwiftFortuneWheel0abC13ConfigurationV21spinButtonPreferences03pinG005wheelG0A2C04SpinfG0V_AC012PinImageViewG0VAC0cG0Vtcfc"></a>
                    <a name="//apple_ref/swift/Method/init(spinButtonPreferences:pinPreferences:wheelPreferences:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:17SwiftFortuneWheel0abC13ConfigurationV21spinButtonPreferences03pinG005wheelG0A2C04SpinfG0V_AC012PinImageViewG0VAC0cG0Vtcfc">init(spinButtonPreferences:<wbr>pinPreferences:<wbr>wheelPreferences:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Initiates a configuration</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="nf">init</span><span class="p">(</span><span class="nv">spinButtonPreferences</span><span class="p">:</span> <span class="kt"><a href="../Structs/SwiftFortuneWheelConfiguration/SpinButtonPreferences.html">SpinButtonPreferences</a></span><span class="p">,</span>
            <span class="nv">pinPreferences</span><span class="p">:</span> <span class="kt"><a href="../Structs/SwiftFortuneWheelConfiguration/PinImageViewPreferences.html">PinImageViewPreferences</a></span><span class="p">,</span>
            <span class="nv">wheelPreferences</span><span class="p">:</span> <span class="kt"><a href="../Structs/SwiftFortuneWheelConfiguration/WheelPreferences.html">WheelPreferences</a></span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>spinButtonPreferences</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Spin button preferences</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>pinPreferences</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Pin (arrow) view preferences</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>wheelPreferences</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Wheel preferences</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:17SwiftFortuneWheel0abC13ConfigurationV0C11PreferencesV"></a>
                    <a name="//apple_ref/swift/Struct/WheelPreferences" class="dashAnchor"></a>
                    <a class="token" href="#/s:17SwiftFortuneWheel0abC13ConfigurationV0C11PreferencesV">WheelPreferences</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Wheel preferences</p>

                        <a href="../Structs/SwiftFortuneWheelConfiguration/WheelPreferences.html" class="slightly-smaller">See more</a>
                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">struct</span> <span class="kt">WheelPreferences</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:17SwiftFortuneWheel0abC13ConfigurationV17CirclePreferencesV"></a>
                    <a name="//apple_ref/swift/Struct/CirclePreferences" class="dashAnchor"></a>
                    <a class="token" href="#/s:17SwiftFortuneWheel0abC13ConfigurationV17CirclePreferencesV">CirclePreferences</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Circle preferences</p>

                        <a href="../Structs/SwiftFortuneWheelConfiguration/CirclePreferences.html" class="slightly-smaller">See more</a>
                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">struct</span> <span class="kt">CirclePreferences</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:17SwiftFortuneWheel0abC13ConfigurationV16SlicePreferencesV"></a>
                    <a name="//apple_ref/swift/Struct/SlicePreferences" class="dashAnchor"></a>
                    <a class="token" href="#/s:17SwiftFortuneWheel0abC13ConfigurationV16SlicePreferencesV">SlicePreferences</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Slice preferences</p>

                        <a href="../Structs/SwiftFortuneWheelConfiguration/SlicePreferences.html" class="slightly-smaller">See more</a>
                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">struct</span> <span class="kt">SlicePreferences</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:17SwiftFortuneWheel0abC13ConfigurationV21SpinButtonPreferencesV"></a>
                    <a name="//apple_ref/swift/Struct/SpinButtonPreferences" class="dashAnchor"></a>
                    <a class="token" href="#/s:17SwiftFortuneWheel0abC13ConfigurationV21SpinButtonPreferencesV">SpinButtonPreferences</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Spin button preferences</p>

                        <a href="../Structs/SwiftFortuneWheelConfiguration/SpinButtonPreferences.html" class="slightly-smaller">See more</a>
                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">struct</span> <span class="kt">SpinButtonPreferences</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:17SwiftFortuneWheel0abC13ConfigurationV23PinImageViewPreferencesV"></a>
                    <a name="//apple_ref/swift/Struct/PinImageViewPreferences" class="dashAnchor"></a>
                    <a class="token" href="#/s:17SwiftFortuneWheel0abC13ConfigurationV23PinImageViewPreferencesV">PinImageViewPreferences</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Pin image view preferences</p>

                        <a href="../Structs/SwiftFortuneWheelConfiguration/PinImageViewPreferences.html" class="slightly-smaller">See more</a>
                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">struct</span> <span class="kt">PinImageViewPreferences</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:17SwiftFortuneWheel0abC13ConfigurationV8PositionO"></a>
                    <a name="//apple_ref/swift/Enum/Position" class="dashAnchor"></a>
                    <a class="token" href="#/s:17SwiftFortuneWheel0abC13ConfigurationV8PositionO">Position</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Position, pin or start position</p>

                        <a href="../Structs/SwiftFortuneWheelConfiguration/Position.html" class="slightly-smaller">See more</a>
                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">enum</span> <span class="kt">Position</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:17SwiftFortuneWheel0abC13ConfigurationV7MarginsV"></a>
                    <a name="//apple_ref/swift/Struct/Margins" class="dashAnchor"></a>
                    <a class="token" href="#/s:17SwiftFortuneWheel0abC13ConfigurationV7MarginsV">Margins</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Margins</p>

                        <a href="../Structs/SwiftFortuneWheelConfiguration/Margins.html" class="slightly-smaller">See more</a>
                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">struct</span> <span class="kt">Margins</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:17SwiftFortuneWheel0abC13ConfigurationV9ColorTypeO"></a>
                    <a name="//apple_ref/swift/Enum/ColorType" class="dashAnchor"></a>
                    <a class="token" href="#/s:17SwiftFortuneWheel0abC13ConfigurationV9ColorTypeO">ColorType</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Color type, used to color the item with the particularized pattern.
<code>evenOddColors</code> -  decorates with a two-color pattern, for odd or even item in the list.
<code>customPatternColors</code> - decorates with specified color for each item on the list.</p>

                        <a href="../Structs/SwiftFortuneWheelConfiguration/ColorType.html" class="slightly-smaller">See more</a>
                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">enum</span> <span class="kt">ColorType</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:17SwiftFortuneWheel0abC13ConfigurationV11AnchorImageV"></a>
                    <a name="//apple_ref/swift/Struct/AnchorImage" class="dashAnchor"></a>
                    <a class="token" href="#/s:17SwiftFortuneWheel0abC13ConfigurationV11AnchorImageV">AnchorImage</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Anchor image used  to add images around the wheel for each slice</p>

                        <a href="../Structs/SwiftFortuneWheelConfiguration/AnchorImage.html" class="slightly-smaller">See more</a>
                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">struct</span> <span class="kt">AnchorImage</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
          </section>
        </section>
        <section id="footer">
          <p>&copy; 2020 <a class="link" href="https://github.com/sh-khashimov/SwiftFortuneWheel.git" target="_blank" rel="external">Sherzod Khashimov</a>. All rights reserved. (Last updated: 2020-07-03)</p>
          <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.4</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
        </section>
      </article>
    </div>
  </body>
</div>
</html>
